$('.main_cont').append('<iframe id ="wechat_iframe" src="" width="100%" height="100%" ></iframe>');

function change_wx() {
    $('#wechat_iframe').attr('src', 'http://www.baidu.com');
}